Learning Objectives

Resources

Introduction

You have been tasked with creating a system to automatically generate a Google Earth KML file with a 3D visualization of recent earthquakes around the world, using data from the United States Geological Survey. Eventually, you hope to run this workspace on a schedule and in response to external triggers. But for this first iteration, you just want to test building an Automation that runs using a Manual Trigger.

1) Create a New Automation

To create your new Automation, the first step is to log in to FME Server.

Note

If you are taking an official Safe Software training course, you can log in with the user name admin and the password FMElearnings.

After logging in, click Automations > Build Automation on the left-hand navigation menu:

Automations > Build Automation in FME Server web interface

2) Add a Manual Trigger

If this is your first time building an Automation on this FME Server, the Get Started box will appear. You can click Close, as we'll explore these steps ourselves right now.

You will see a new blank Automation, with a starting Trigger and two possible Next Action objects already added:

Default starting Automation with one Trigger

Let's turn that starting Trigger into a Manual Trigger. Click the lightning bolt icon on the Trigger, then click Select a Trigger Event and choose Manual Trigger (max 1 per Automation):

Selecting a Manual Trigger

Disable Prompt for JSON on Trigger. This option lets you supply input keys for the Automation, but we don't need that ability for this Automation. 

Click Apply. The Trigger will turn into a Manual Trigger:

A Manual Trigger has been added

3) Add a Run Workspace Action

Click the circle icon above the top Next Action block. Then click Select an action and then choose Run a Workspace:

Configuring Next Action Details

Select the Samples repository and the earthquakesextrusion.fmw workspace. Click Apply.

Note

If you don't have the earthquakesextrusion.fmw workspace on your FME Server (it should be there by default), you can download it here: earthquakesextrusion.fmw. If you are using a Safe Software training machine or downloaded FMEData, you can use C:\FMEData\Workspaces\CreateDataIntegrationApps\earthquakesextrusion.fmw.

The earthquakeextrusion.fmw workspace action should now appear on the canvas:

A Workspace Action has been added

4) Save and Start the Automation

We now have a basic Automation that will run the earthquakeextrusion.fmw workspace when manually triggered. Before starting it, we need to save it. Click the Save icon:

Save button

Call your workspace Earthquake Automation and click OK:

Save parameters

Now that the Automation has been saved, we have to start it. Click Start Automation:

Start Automation button

5) Trigger the Automation to Run

After starting the Automation, you can no longer edit it. However, you can manually trigger the Automation. Click the play button icon on the Manual Trigger to open its Details pane. Then click Trigger to manually start the Automation:

Manually triggering an Automation

The Automation will run.

6) View the Automation Log

You can confirm the Automation was manually triggered by clicking the Menu, then View Log File:

Viewing Automation log file

You will see the Automation Log, which reports the Automation's activities. You should see a line that looks something like this:

2022-05-24T15:08:13-07:00 | 410160 : (Automations) Automation successfully triggered

A few more lines will report on the running job. If your Automation and workspace were configured properly, you should eventually see a line something like this:

2022-05-24T15:08:14-07:00 | 402623 : Job 23: Translation was successful.

We've confirmed the Automation's Manual Trigger successfully ran a Job.

Note

If you noticed your job failed, the USGS Earthquake API might be unavailable. Instead, you can try replacing the Source GeoJSON File or URL parameter in your Run Workspace Action with this example: example.geojson. If you are using a Safe Software training machine or downloaded FMEData, you can use C:\FMEData\Resources\CreateDataIntegrationApps\example.geojson.

7) View Triggered Jobs

You can browse or search through the Automation Log to find all the jobs triggered by an Automation. However, it can often be easier to view the list of triggered jobs directly. To do this, click your browser's back button to return to your Automation. Then click Menu > View Triggered Jobs:

Viewing Triggered Jobs in Automations menu

This will open the Completed Jobs page automatically filtered to only show Jobs triggered by this Automation. You should see the Job you manually triggered:

Viewing Completed jobs

Congratulations! You successfully built a simple Automation that can be manually triggered. 

Note

You can learn to build more complex Automations in the Build Versatile Automations course.